package com.example.demo.service;

import com.example.demo.mapper.ExpressMapper;
import com.example.demo.model.ExpressInfo;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class ExpressService implements ExpressMapper {

    @Autowired
    private ExpressMapper expressMapper;

    @Override
    public int insert(ExpressInfo expressInfo) {
        return expressMapper.insert(expressInfo);
    }

    @Override
    public ExpressInfo getByOrderNo(String orderNo) {
        return expressMapper.getByOrderNo(orderNo);
    }
}
